package com.phamloc.ga01.scene;

import org.andengine.entity.sprite.Sprite;

import com.phamloc.ga01.base.BaseScene;
import com.phamloc.ga01.manager.SceneManager.SceneType;

public class SplashScene extends BaseScene {
	private Sprite splash;
	@Override
	public void createScene() {
		splash =  new Sprite(0, 0, resourcesManager.splash_region, vbom);        
		splash.setPosition(400, 240);
		attachChild(splash);
	}

	@Override
	public void onBackKeyPressed() {
		System.exit(0);
	}

	@Override
	public SceneType getSceneType() {
		return SceneType.SCENE_SPLASH;
	}

	@Override
	public void disposeScene() {
		splash.detachSelf();
	    splash.dispose();
	    this.detachSelf();
	    this.dispose();
	}

}
